package com.example.demoserver.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * 
 * @TableName house_partstore
 */
@TableName(value ="house_partstore")
public class HousePartstore implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Object id;

    /**
     * 
     */
    private String partname;

    /**
     * 
     */
    private String procompany;

    /**
     * 
     */
    private String protime;

    /**
     * 
     */
    private String comment;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Object getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Object id) {
        this.id = id;
    }

    /**
     * 
     */
    public String getPartname() {
        return partname;
    }

    /**
     * 
     */
    public void setPartname(String partname) {
        this.partname = partname;
    }

    /**
     * 
     */
    public String getProcompany() {
        return procompany;
    }

    /**
     * 
     */
    public void setProcompany(String procompany) {
        this.procompany = procompany;
    }

    /**
     * 
     */
    public String getProtime() {
        return protime;
    }

    /**
     * 
     */
    public void setProtime(String protime) {
        this.protime = protime;
    }

    /**
     * 
     */
    public String getComment() {
        return comment;
    }

    /**
     * 
     */
    public void setComment(String comment) {
        this.comment = comment;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        HousePartstore other = (HousePartstore) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getPartname() == null ? other.getPartname() == null : this.getPartname().equals(other.getPartname()))
            && (this.getProcompany() == null ? other.getProcompany() == null : this.getProcompany().equals(other.getProcompany()))
            && (this.getProtime() == null ? other.getProtime() == null : this.getProtime().equals(other.getProtime()))
            && (this.getComment() == null ? other.getComment() == null : this.getComment().equals(other.getComment()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getPartname() == null) ? 0 : getPartname().hashCode());
        result = prime * result + ((getProcompany() == null) ? 0 : getProcompany().hashCode());
        result = prime * result + ((getProtime() == null) ? 0 : getProtime().hashCode());
        result = prime * result + ((getComment() == null) ? 0 : getComment().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", partname=").append(partname);
        sb.append(", procompany=").append(procompany);
        sb.append(", protime=").append(protime);
        sb.append(", comment=").append(comment);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}